<extend name="layout/index"/>
<block name="content">
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>新闻分类列表</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link"  href="{:url('news/cate_edit',array('id'=>0))}">新增分类
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>

                                <th>ID</th>
                                <th>模块名字</th>
                                <th>正标题</th>
                                <th>副标题</th>
                                <th>状态</th>
                                <th>创建时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <volist name="list" id="vo">
                            <tr>
                                <td>
                                    {$vo.id}
                                </td>
                                <td>{$vo.title}</td>
                                <td>{$vo.headline}</td>
                                <td>{$vo.subheading}</td>
                                <td><eq name="vo.status" value="1"><i class="fa fa-check text-navy">展示</i><else/><i class="fa fa-check text-navy">隐藏</i></eq></td>
                                <td>{$vo.create_time|date="Y-m-d H:i:s"}</td>
                                <td data-field="11" data-key="1-0-11" data-off="true" class="layui-table-col-special">
                                    <div class="layui-table-cell laytable-cell-1-0-11">
                                    <a  href="{:url('server/cate_edit',array('id'=>$vo.id))}" class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                                    <a class="layui-btn layui-btn-danger layui-btn-xs " onclick="del('{$vo.id}','{:url('server/cate_del')}')"  lay-event="del">删除</a>
                                </div>
                                </td>
                            </tr>
                            </volist>
                            </tbody>
                        </table>
                    </div>

                </div>
            </div>
        </div>

    </div>
</div>
</block>
<block name="js">
</block>

